package com.jzh.selfwallpaper.view.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.jzh.selfwallpaper.R;
import com.jzh.selfwallpaper.model.Model;

import imageloader.libin.com.images.loader.ImageLoader;

public class Model_3 extends RelativeLayout implements Model {

    private ImageView iv_model3_bg;
    private Context context;
    private View viewModel;

    public Model_3(Context context) {
        super(context);
        this.context=context;
        init();
    }

    public Model_3(Context context, AttributeSet attrs) {
        super(context, attrs);
        this.context=context;
        init();
    }

    private void init() {
        viewModel = LayoutInflater.from(context).inflate(R.layout.model_3, this, true);
        iv_model3_bg=viewModel.findViewById(R.id.iv_model3_bg);

        ImageLoader.with(context)
                .res(R.drawable.zrn3)
                .swirlFilter()
                .into(iv_model3_bg);
    }

    @Override
    public void setPhoto(String path) {

    }
}
